-- GENERATED SPELL FOR [Tur Ragepaw] --


function spell0_27328(pUnit, Event) --@Empowered Moonkin Aura,Self--
pUnit:FullCastSpellOnTarget(52503,pUnit)
pUnit:RegisterEvent('Sorts_27328', 630, 1)
end

function spell1_27328(pUnit, Event) --@Empowered Tree of Life,Self--
pUnit:FullCastSpellOnTarget(52553,pUnit)
pUnit:RegisterEvent('Sorts_27328', 582, 1)
end

function spell2_27328(pUnit, Event) --@Lacerate,n/a--
pUnit:FullCastSpellOnTarget(52504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27328', 15000, 1)
end

function spell3_27328(pUnit, Event) --@Lifebloom,Heal--
pUnit:FullCastSpellOnTarget(52551,pUnit)
pUnit:RegisterEvent('Sorts_27328', 7000, 1)
end

function spell4_27328(pUnit, Event) --@Maul,n/a--
pUnit:FullCastSpellOnTarget(52506,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27328', 550, 1)
end

function spell5_27328(pUnit, Event) --@Moonfire,n/a--
pUnit:FullCastSpellOnTarget(52502,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27328', 12000, 1)
end

function spell6_27328(pUnit, Event) --@Nourish,Heal--
pUnit:FullCastSpellOnTarget(52554,pUnit)
pUnit:RegisterEvent('Sorts_27328', 1500, 1)
end

function spell7_27328(pUnit, Event) --@Ragepaw\'s Presence,Self--
pUnit:FullCastSpellOnTarget(52507,pUnit)
pUnit:RegisterEvent('Sorts_27328', 617, 1)
end

function spell8_27328(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(52501,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27328', 2000, 1)
end

function Sorts_27328(pUnit, Event)
local choix_sorts_27328 = math.random(0, 8)
if choix_sorts_27328 == 0 then
pUnit:RegisterEvent('spell0_27328', 1, 1)
end
if choix_sorts_27328 == 1 then
pUnit:RegisterEvent('spell1_27328', 1, 1)
end
if choix_sorts_27328 == 2 then
pUnit:RegisterEvent('spell2_27328', 1, 1)
end
if choix_sorts_27328 == 3 then
pUnit:RegisterEvent('spell3_27328', 1, 1)
end
if choix_sorts_27328 == 4 then
pUnit:RegisterEvent('spell4_27328', 1, 1)
end
if choix_sorts_27328 == 5 then
pUnit:RegisterEvent('spell5_27328', 1, 1)
end
if choix_sorts_27328 == 6 then
pUnit:RegisterEvent('spell6_27328', 1, 1)
end
if choix_sorts_27328 == 7 then
pUnit:RegisterEvent('spell7_27328', 1, 1)
end
if choix_sorts_27328 == 8 then
pUnit:RegisterEvent('spell8_27328', 1, 1)
end
end

function mob27328_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27328', math.random(1500, 3000), 1)
end

function mob27328_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27328_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27328_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27328, 1, 'mob27328_Action')
RegisterUnitEvent(27328, 2, 'mob27328_Leave')
RegisterUnitEvent(27328, 3, 'mob27328_Kill')
RegisterUnitEvent(27328, 4, 'mob27328_Die')
